﻿
namespace MyFloridaHouse.libSvCommonUtilities
{
	/// <summary>
	/// System constants for system configuration.
	/// </summary>
    public class Constants
    {
		/// <summary>
		/// Default Directory Name
		/// </summary>
        public const string DefaultDirectoryName = "Default";
		/// <summary>
		/// Default District Plan File Key
		/// </summary>
        public const string DefaultDistrictPlanFileKey = "DefaultDistrictPlan";
		/// <summary>
		/// Azure Blob URL
		/// </summary>
        public const string BlobURL = "https://censusvalidator.blob.core.windows.net/opendistricts";

        public const string CloudBlobBaseURL = "http://censusvalidator.blob.core.windows.net";
        public const string CloudBlobContainer = "opendistricts";
        public const string CloudDataTimestampURL = "https://censusvalidator.blob.core.windows.net/opendistricts/DataFileTimestamps";
        public const string CloudTimestampDirectory = "DataFileTimestamps";
        public const string CloudCensusGeometryDataTimestampKey = "CensusGeometry.txt";
        public const string CloudDistrictPlanTypesDataTimestampKey = "DistrictPlanTypes.txt";
        public const string CloudLayersDataTimestampKey = "Layers.txt";
        //todo: future?: public const string DataDictionaryCloudDataTimestampKey = "DataDictionary";

        public const string IsolatedSaveDirectoryName = "StartupDataFiles";
        public const string IsolatedCensusGeometryFileName = "CensusGeometry.obj";
        public const string IsolatedDistrictPlanTypesFileName = "DistrictPlanTypes.obj";
        public const string IsolatedLayersFileName = "Layers.obj";

		/// <summary>
		/// District Plan Directory Name
		/// </summary>
        public const string DistrictPlanDirectoryName = "DistrictPlans";

		/// <summary>
		/// Unassigned District ID
		/// </summary>
        public const int UnassignedDistrictID = 0;
		/// <summary>
		/// District Copy Clipboard File Name
		/// </summary>
        public const string DistrictCopyClipboardFileName = "DistrictCopy.obj";
		/// <summary>
		/// District Copy Clipboard Directory Name
		/// </summary>
        public const string DistrictCopyClipboardDirectoryName = "Clipboard";

		/// <summary>
		/// Plan File Format Internal
		/// </summary>
        public const string PlanFileFormatInternal = "INTERNAL";
        /// <summary>
        /// Plan File Format Freds
        /// </summary>
        public const string PlanFileFormatFreds = "FREDS";
        /// <summary>
        /// Plan File Format XML
        /// </summary>
        public const string PlanFileFormatXML = "XML";


		/// <summary>
		/// Max District Add Shape Count (1000)
		/// </summary>
        public const int MaxDistrictAddShapeCount = 14000;

		/// <summary>
		/// Map Starting Zoom Level (7)
		/// </summary>
        public const int MAP_STARTING_ZOOM_LEVEL = 7;
		/// <summary>
		/// Min Map Starting Zoom level (4)
		/// </summary>
        public const int MINIMAP_STARTING_ZOOM_LEVEL = 4;
		/// <summary>
		/// Total population to be apportioned (15982378)
		/// </summary>
        public const int TOTAL_POPULATION_TO_BE_APPORTIONED = 18801310;
		/// <summary>
		/// Population Dictionary ID (3)
		/// </summary>
        public const int PopulationDictionaryID = 148077;
        public const int PopulationDictionaryIDSourceLayerID = 0;
        /// <summary>
        /// ACS Layer ID in the active AppLayers table (3)
        /// </summary>
        public const string ACSLayerID = "13";

        //public const string SubmittedPlansURL = BlobURL + "SubmittedPlans";


        // initialize this wkt with a point out in matamoros mexico so it doesn't show in florida  
        public const string WKT_EMPTY_SHAPE = "POINT(-97.501 25.8921)";
        public const double WKT_EMPTY_SHAPE_LATITUDE = 25.8921;
        public const double WKT_EMPTY_SHAPE_LONGITUDE = -97.501;

        public const string HoleIconUriString = "Images/IconDistrictHole.jpg";
        public const string SolidIconUriString = "Images/IconDistrictSolid.jpg";
        public const string StragglerIconUriString = "Images/IconDistrictStraggler.jpg";

        public const string DefaultCriteriaDatasetName = "System-Beginner";
    }
}
